package shuzu;

public class shuZu {
    public static void main(String[] args) {
        //动态初始化
        int[] arr = new int[30];
        //静态初始化
        int[] arr1 = new int[]{1,3,4,6,7,8,1,3,4,6,7,8,90,467};
        //或者  省略
        int[] arr2 = {3,5,6};
        ///////////////////////////
        //最大值
        int ans = 0;
        for(int i = 0; i < arr1.length;i ++){
            ans = Math.max(arr1[i],arr[i + 1]);
        }
        System.out.println(ans);
    }
}
